package com.jgp.sys.freemarker.tag;

import freemarker.ext.beans.BeansWrapper;
import freemarker.ext.beans.BeansWrapperBuilder;
import freemarker.template.Configuration;
import freemarker.template.TemplateDirectiveModel;

/**
 * Created by Gavin Lou on 16/4/1.
 */
public abstract class AbstractDirective implements TemplateDirectiveModel {

    public static final String OUT_DATA = "data";
    public static final String OUT_DATA_LIST = "data_list";
    public static final String PARAM_PAGE_SZIE = "pageSize";
    public static final String PARAM_PAGE_NO = "pageNo";
    public static final String PARAM_ID = "id";

    public static BeansWrapper getBeansWrapper(){
        BeansWrapper beansWrapper =
                new BeansWrapperBuilder(Configuration.VERSION_2_3_23).build();
        return beansWrapper;
    }
}
